<{include file="page/header.htm"}>
<link href="/skin/adminhtml/webuploader/webuploader.css" rel="stylesheet" type="text/css" />
<div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="fa fa-home"></i>
                            <a href="#">系统管理</a>
                        </li>
                        <li class="active">系统设定</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                
                <!-- Page Header -->
                <div class="page-header position-relative">
                    <div class="header-title">
                        <h1>
                           系统管理
                        </h1>
                        <small>
                                <i class="fa fa-angle-right"></i>
                                系统设定
                       </small>
                    </div>
                    <!--Header Buttons-->
                    <div class="header-buttons">
                        <a class="sidebar-toggler" href="#">
                            <i class="fa fa-arrows-h"></i>
                        </a>
                        <a class="refresh" id="refresh-toggler" href="">
                            <i class="glyphicon glyphicon-refresh"></i>
                        </a>
                        <a class="fullscreen" id="fullscreen-toggler" href="#">
                            <i class="glyphicon glyphicon-fullscreen"></i>
                        </a>
                    </div>
                    <!--Header Buttons End-->
                </div>
                <!-- /Page Header -->
                <!-- Page Body -->
                <div class="page-body">
                
                  <{include file="page/msg.htm"}>
                
                <div class="row">
                                <div class="col-lg-12 col-sm-12 col-xs-12">
                                    <div class="widget radius-bordered">
                                        <div class="widget-header bg-themeprimary">
                                            <span class="widget-caption">系统设定</span>
                                            <div class="widget-buttons">
                                              
                                            </div>
                                        </div>
                                        <div class="widget-body">

                       <form id="dataForm" enctype="multipart/form-data" method="post" class="form-horizontal" action="<{url path='settings'}>">
                       					  <div class="row">
                                          	   <div class="col-sm-12 col-xs-12">
                                              <div class="tabbable">
                                        <ul class="nav nav-tabs" id="siteTabe">
                                        
                                            <li class="active">
                                                <a data-toggle="tab" href="#home">
                                                    基础设置
                                                </a>
                                            </li>

                                            <li class="tab-red">
                                                <a data-toggle="tab" href="#profile">
                                                    高级设置
                                                </a>
                                            </li>

                                            
                                        </ul>

                                        <div class="tab-content">
                                            <div id="home" class="tab-pane in active">
                                                 <div class="row">
                                                    <div class="col-sm-6 col-xs-6">
                                                    	<{foreach from=$configgroup[1]  item=setting}>
                                                        <div class="form-group">
                                                            <label class="col-lg-4 control-label"><{$setting->name}></label>
                                                            <div class="col-lg-8">
                                                            	
                                                                <{if $setting->type == 2}>
                                                                     <textarea name="<{$setting->code}>" id="<{$setting->code}>" class="form-control"><{$setting->value}></textarea>
                                                                <{elseif  $setting->type ==4}>
                                                                	<input type="file" name="<{$setting->code}>">
                                                                    <input type="hidden" name="<{$setting->code}>" value="<{$setting->value}>">
                                                                    <{if $setting->value}>
                                                                    	<a target="_blank" href="<{$setting->value}>"><img src="<{$setting->value}>"  width="50" height="50"/></a>
                                                                    <{/if}>
                                                                <{elseif $setting->type ==3}>
                                                                    <{foreach from=$setting->values item=v key=k}>
                                                                        <div class="radio" style="display:inline-block; margin-right:3px;">
                                                                            <label>
                                                                                <input  name="<{$setting->code}>" type="radio" value="<{$k}>" <{if $setting->value == $k}>checked="checked"<{/if}> >
                                                                                <span class="text"><{$v}></span>
                                                                            </label>
                                                                        </div>
                                                                    <{/foreach}>
                                                                <{else}>
                                                                	<input class="form-control" name="<{$setting->code}>" type="text"  value="<{$setting->value}>"  id="<{$setting->code}>"  />
                                                                <{/if}>
                                                                
                                                                <{if $setting->help }>
                                                                <p class="help-block"><{$setting->help}></p>
                                                                <{/if}>
                                                                
                                                            </div>
                                                        </div>
                                                        <{/foreach}>
                                                    </div>
                                                </div>
                                            </div>

                                            <div id="profile" class="tab-pane">
                                              
                                              <div class="row">
                                                    <div class="col-sm-6 col-xs-6">
                                                       <{foreach from=$configgroup[2]  item=setting}>
                                                        <div class="form-group">
                                                            <label class="col-lg-4 control-label"><{$setting->name}></label>
                                                            <div class="col-lg-8">
                                                                <{if $setting->type == 2}>
                                                                     <textarea name="<{$setting->code}>" id="<{$setting->code}>" class="form-control"><{$setting->value}></textarea>
                                                                
                                                                <{elseif  $setting->type ==4}>
                                                                	<input type="file" name="<{$setting->code}>">
                                                                    <input type="hidden" name="<{$setting->code}>" value="<{$setting->value}>">
                                                                    <{if $setting->value}>
                                                                    	<a target="_blank" href="<{$setting->value}>"><img src="<{$setting->value}>"  width="50" height="50"/></a>
                                                                    <{/if}>
                                                                
                                                                <{elseif $setting->type ==3}>
                                                                    <{foreach from=$setting->values item=v key=k}>
                                                                        <div class="radio" style="display:inline-block; margin-right:3px;">
                                                                            <label>
                                                                                <input  name="<{$setting->code}>" type="radio" value="<{$k}>" <{if $setting->value == $k}>checked="checked"<{/if}> >
                                                                                <span class="text"><{$v}></span>
                                                                            </label>
                                                                        </div>
                                                                    <{/foreach}>
                                                                <{else}>
                                                                	<input class="form-control" name="<{$setting->code}>" type="text"  value="<{$setting->value}>"  id="<{$setting->code}>"  />
                                                                <{/if}>
                                                                <{if $setting->help }>
                                                                <p class="help-block"><{$setting->help}></p>
                                                                <{/if}>      
                                                            </div>
                                                        </div>
                                                        <{/foreach}>
                                                    </div>
                                                </div>
                                                
                                            </div>
                                            
                                            <div class="row" style="margin-top:20px;">
                                                    <div class="col-sm-6 col-xs-6">
                                                <div class="form-group">
                                                    <div class="col-lg-offset-4 col-lg-8">
                                                        <input class="btn btn-primary" type="submit" value="提交" />
                                                        <button type="button" class="btn btn-warning" onclick="window.location='<{url path='activity'}>';">返回</button> 
                                                    </div>
                                                </div>
                                                    </div>
                                                </div>
                                            

                                        </div>
                                        
                                        
                                    </div>
                                    
                                            </div>
                                          </div>
                                          
                                        
                                        </form>
                              
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>  
                
                </div>
                <!-- /Page Body -->
            </div>
<{include file="page/footer.htm"}>